<%--
  Created by IntelliJ IDEA.
  User: leman
  Date: 2017/7/12
  Time: 10:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<blockquote class="layui-elem-quote" style="line-height: 15px;">
    <a class="bt" href="" target="_blank" ng-click="active.nextPage('24', '应付账单管理', '内容20', 'payable')">应付账单管理</a> > 确认账单
</blockquote>

<div   id="seaBox" ng-hide="mySea">
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">承运方</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input layui-disabled" ng-model="data.bill.carrierName" readonly="readonly">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">账单编号</label>
            <div class="layui-input-inline">
                <input type="text"  class="layui-input layui-disabled" ng-model="data.bill.billCode" readonly="readonly">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">账单状态</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input layui-disabled" ng-model="billStatus" readonly="readonly">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">账单金额</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input layui-disabled" ng-model="data.bill.waybillCost" readonly="readonly">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">结算金额</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input layui-disabled" ng-model="data.bill.settleCost" readonly="readonly">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">商品数量</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input layui-disabled" ng-model="data.bill.goodsSum" readonly="readonly">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">是否开发票</label>
            <div class="layui-input-inline">
                <select class="valName sel"  id="invoiceStatus" ng-model="data.bill.invoiceStatus">
                    <option value="20">开票</option>
                    <option value="10">不开票</option>
                </select>
            </div>
        </div>
    </div>
</div>
<div class="layui-input-inline">
    <button class="layui-btn" ng-click="active.confirmBill()" id="billId" value="{{data.bill.id}}">确认账单</button>
</div>
<div style="overflow-x:auto;">
    <table class="layui-table" style="min-width: 2200px;max-width: 2000px;margin-bottom: 0;">
        <tr>
            <th>序号</th>
            <th>运单号</th>
            <th>服务订单号</th>
            <th>承运人</th>
            <th>委托日期</th>
            <th>运单起运地</th>
            <th>运单目的地</th>
            <th>品牌</th>
            <th>车系</th>
            <th>车架号</th>
            <th>数量</th>
            <th>状态</th>
            <th>采购价</th>
            <th>调整金额</th>
            <th>结算价</th>
            <th>客户</th>
            <th>订单起运地</th>
            <th>订单目的地</th>
            <th>操作</th>
        </tr>
        <tr ng-repeat="x in data.list">
            <td ng-bind="$index+1"></td>
            <td ng-bind="x.id"  style="display: none"></td>
            <td ng-bind="x.waybillCode"></td>
            <td ng-bind="x.serviceOrderCode"></td>
            <td ng-bind="x.carrierName"></td>
            <td ng-bind="x.billDate.substring(0,11)"></td>
            <td ng-bind="x.wdepartProvinceName + '-' + x.wdepartCityName"></td>
            <td ng-bind="x.wreceiptProvinceName + '-' + x.wreceiptCityName"></td>
            <td ng-bind="x.brandName"></td>
            <td ng-bind="x.vehicleName"></td>
            <td ng-bind="x.vin"></td>
            <td ng-bind="x.amount"></td>
            <td ng-bind="x.status==20 ? '已接单':(x.status==30 ? '待提车' :(x.status==40 ? '已提车' :(x.status==50 ? '待发车' :(x.status==60 ? '待交车' :(x.status==80 ? '已交车' :(x.status==90 ? '已完成' : ''))))))"></td>
            <td ng-bind="x.sysCost"></td>
            <td ng-click="adjustBtn()"><a ng-bind="x.alterCost==null ? '0' : x.alterCost" style="color:red;cursor:pointer;text-decoration: underline;"></a></td>
            <td ng-bind="x.settleCost"></td>
            <td ng-bind="x.customerCompanyName"></td>
            <td ng-bind="x.odepartProvinceName + '-' + x.odepartCityName"></td>
            <td ng-bind="x.oreceiptProvinceName + '-' + x.oreceiptCityName"></td>
            <td style="display:none" ng-bind="x.comment"></td>
            <td ng-click="confirmDelBtn()"> <a style="color:red;cursor:pointer;text-decoration: underline;"  >移除</a></td>
        </tr>
    </table>
</div>
<div style="float:right;">
    <ul class="layui-box layui-laypage layui-laypage-default">
        <li>
            <a ng-class="{true:'layui-btn-disabled'}[p_current==1]" href="javascript:void(0);" ng-click="p_index(this)">首页</a>
        </li>
        <li>
            <a ng-class="{true:'layui-btn-disabled'}[p_current==1]" href="javascript:void(0);" ng-click="prev_page(this)">上一页</a>
        </li>
        <%--这块是显示多少页的--%>
        <li ng-repeat="page in pages" ng-class="{true:'active'}[p_current==page]">
            <a class="layui-laypage-curr" href="javascript:void(0);" ng-click="load_page(page)">{{ page }}</a>
        </li>
        <li>
            <a ng-class="{true:'layui-btn-disabled'}[p_current==p_all_page]" href="javascript:void(0);" ng-click="next_page(this)">下一页</a>
        </li>
        <li>
            <a ng-class="{true:'layui-btn-disabled'}[p_current==p_all_page]" href="javascript:void(0);" ng-click="p_last()">尾页</a>
        </li>
    </ul>
    <span>共{{count}}条</span>
    <span style="padding-left: 10px;">到第
        <input id="on" type="text" value="{{p_current}}"/>页
        <button class="layui-btn layui-btn-small" ng-click="goBtn()" style="margin-top: -5px;">确定</button>
    </span>
</div>


<input type="hidden" id="sysCost" value="">
<input type="hidden" id="alterCost" value="">
<input type="hidden" id="settleCost" value="">
<input type="hidden" id="comment" value="">




